<!DOCTYPE html>
<script src="resources/responsive-test.js"></script>
<script>
assertCSSResponsive({
  property: 'backdrop-filter',
  from: neutralKeyframe,
  to: 'blur(10px)',
  configurations: [{
    state: {underlying: 'blur(50px)'},
    expect: [
      {at: 0.25, is: 'blur(40px)'},
      {at: 0.75, is: 'blur(20px)'},
    ],
  }, {
    state: {underlying: 'opacity(50%)'},
    expect: [
      {at: 0.25, is: 'opacity(0.5)'},
      {at: 0.75, is: 'blur(10px)'},
    ],
  }],
});

assertCSSResponsive({
  property: 'backdrop-filter',
  from: 'inherit',
  to: 'blur(10px)',
  configurations: [{
    state: {inherited: 'blur(50px)'},
    expect: [
      {at: 0.25, is: 'blur(40px)'},
      {at: 0.75, is: 'blur(20px)'},
    ],
  }, {
    state: {inherited: 'opacity(50%)'},
    expect: [
      {at: 0.25, is: 'opacity(0.5)'},
      {at: 0.75, is: 'blur(10px)'},
    ],
  }],
});

assertCSSResponsive({
  property: 'backdrop-filter',
  from: neutralKeyframe,
  to: 'blur(10px)',
  configurations: [{
    state: {underlying: 'blur(50px)'},
    expect: [
      {at: 0.25, is: 'blur(40px)'},
      {at: 0.75, is: 'blur(20px)'},
    ],
  }, {
    state: {underlying: 'blur(30px)'},
    expect: [
      {at: 0.25, is: 'blur(25px)'},
      {at: 0.75, is: 'blur(15px)'},
    ],
  }],
});
</script>
